package xyz.eden.boot.core.exception;

import lombok.Getter;

/**
 * 业务异常
 *
 * @author gavin
 * @version 1.0
 * @descriptor
 * @date 2022/12/6 17:06
 */
@Getter
public class BusinessException extends RuntimeException {

    protected Integer code;
    protected String message;

    public BusinessException(Integer code, String message) {
        super(message);
        this.code = code;
        this.message = message;
    }

    public BusinessException(Integer code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
        this.message = message;
    }
}
